<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script setup>
import { onBeforeMount } from 'vue'
import { useStore } from 'vuex'

const store = useStore()
onBeforeMount(async() => {
  store.dispatch('user/login')
  const { iconInit } = await import('@ruifox-cms/utils')
  const res = await store.dispatch('base/getGroupSetting')
  iconInit(res.publicIcon)
})
</script>

<style lang="scss">
#app{
  width: 100vw;
  height: 100vh;
  overflow-y: hidden;
}
</style>